package com.ant.storage.controller;


import com.ant.storage.common.ResultVo;
import com.ant.storage.service.IAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author melon
 * @since 2022-11-30
 */
@Api(tags = "功能接口")
@RestController
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private IAccountService accountService;

    @ApiOperation(value = "查询所有账户")
    @GetMapping("/findAccount")
    public ResultVo findAccount(){
        return ResultVo.success("操作成功", accountService.list());
    }


}
